package model

import "time"

type CustomerService struct {
	ServiceID  int       `gorm:"primaryKey;autoIncrement;column:service_id"`
	QrCodeURL  string    `gorm:"type:varchar(255);not null;column:qr_code_url;comment:微信二维码图片地址"`
	IsDeleted  bool      `gorm:"column:is_deleted;default:false;comment:是否已软删除"`
	UpdateTime time.Time `gorm:"autoUpdateTime;column:update_time;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"`
}

// 自定义表名（默认表名为结构体名的蛇形复数 customer_services）
func (CustomerService) TableName() string {
	return "CustomerService"
}
